import Router from 'vue-router'
import Vue from 'vue'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'HelloWorld',
        component: () =>
            import ('@/components/HelloWorld'),
        children: [{
                path: "/",
                name: "index",
                component: () =>
                    import ('@/view/layout/index.vue'),
                meta: {
                    linkname: [{ "首页": "/" }]
                }
            },
            {
                path: "/news",
                name: "news",
                component: () =>
                    import ('@/view/pages/new/new_list.vue'),
                meta: {
                    linkname: [{ "新闻": "/news" }]
                }
            },
            {
                path: "/mavonEditor",
                name: "mavonEditor",
                component: () =>
                    import ('@/view/pages/test/mavonEditor.vue'),
                meta: {
                    linkname: [{ "富文本": "/mavonEditor" }]
                }
            },
            {
                path: "/upload",
                name: "upload",
                component: () =>
                    import ('@/view/pages/test/upload.vue'),
                meta: {
                    linkname: [{ "上传": "/upload" }]
                }
            },
        ]
    }, ]
});